package com.itheima.test02.config;

import com.itheima.test02.pojo.User;
import com.itheima.test02.service.UserService;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration  // 相当xml配置
@ComponentScan("com.itheima.test02")  // <context:component-scan
//@Import(UserService.class)
//@Import(MyImportSelector.class)
@Import(MyImportBeanDefinitionRegistrar.class)
public class SpringConfig2 {
}
